/**
 * 库位管理 api
 */
import request from '@/utils/request'

export function getInfo(query) {
  return request({
    url: '/wms/base/store/location/page',
    method: 'get',
    params: query
  })
}

export function add(data) {
  return request({
    url: '/wms/base/store/location/',
    method: 'post',
    data
  })
}

export function batchAdd(data) {
  return request({
    url: '/wms/base/store/location/batch',
    method: 'post',
    data
  })
}

export function update(id, data) {
  return request({
    url: `/wms/base/store/location/${id}`,
    method: 'put',
    data
  })
}

export function deleteInfo(id) {
  return request({
    url: `/wms/base/store/location/${id}`,
    method: 'delete'
  })
}
